package com.briup.cms.dao;

import com.briup.cms.bean.Inform;

import org.apache.ibatis.annotations.*;

import java.util.List;

public interface InformMapper {

    @Select("select * from cms_inform")
    List<Inform> selectAll();

@Insert("insert into cms_inform values(null,#{content},#{articleId},#{userId})")
void insert(Inform inform);

@Update("update cms_inform set content=#{content},article_id=#{articleId},user_id=#{userId} where id=#{id}")
    void update(Inform inform);

@Delete("delete from cms_inform where id=#{id}")
    void deleteById(long id);
}